package work.TP.IS.tp1.v1;

import fr.dyade.aaa.agent.*;

public class HelloWorld extends Agent {
	public AgentId dest;
	
	public HelloWorld(short to) {
		super(to);
	}
	
	public void react(AgentId from, Notification n) throws Exception {
		if(n instanceof HelloWorldNot){
			System.out.println(((HelloWorldNot)n).msg);
			//TO DO send a new notification
		}
		else
			super.react(from, n);
	}

}
